package com.yunhe.spring.service.impl;

import com.yunhe.spring.dao.UserDao;
import com.yunhe.spring.dao.impl.UserDaoImpl;
import com.yunhe.spring.entity.User;
import com.yunhe.spring.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao;

    /**
     * 这个就是设置函数注入 承接beans.xml
     * @param userDao
     */
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }



    public void save(User user) {
        userDao.save(user);
    }
}
